#pragma once


class CLoginState :
	public CBaseState,
	public CPlayerManagerAckMsgHandler
	
{
protected:
	CD3DLight *			m_pLight;
	CD3DCamera *		m_pCamera;
	CLoginWnd *			m_pWndLogin;
	CD3DWOWM2Model *	m_pBackGround;

	UINT64				m_AccountID;

	DECLARE_DOS_MSG_MAP_CLIENT(CLoginState)
public:
	CLoginState(CMainFrame * pMainFrame);
	~CLoginState(void);

	virtual bool Init();
	virtual void Destory();
	virtual int Update(float Time);

	void Login(LPCTSTR AccountName,LPCTSTR Password);

protected:
	virtual int PlayerLoginAck(int Result ,UINT64 AccountID );

};
